import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:xim/common/util/device.dart';

/// 通讯录页面
class ChatBookScreen extends StatefulWidget {
  const ChatBookScreen({Key? key}) : super(key: key);

  @override
  State<ChatBookScreen> createState() => _ChatBookScreenState();
}

class _ChatBookScreenState extends State<ChatBookScreen> {

  String id = "123";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text(id),
      ),
    );
  }

  @override
  void initState() {
    super.initState();
    getDeviceId().then((value){
      setState(() {
        id = value ?? "";
      });
    });
  }
}
